	<h2 class='header'>Categories</h2>
		<span id='category-loading' class='hideme spinner'></span><br />
	<div id='category-flash' align='center'><?php echo $msg; ?></div>
	<form name='addcategoryform' id='addcategoryform' action='<?php echo HTTP_SERVER.ADMIN_DIR; ?>categories' method='post'>
		<input type='hidden' name='submit' id='submit' value='1' />
		<table border='1' cellspacing='0' align='center'>
		<tr bgcolor='#CCEEBB'><td colspan='7' align='center'><p><b>Add New Category</b></p></td></tr>
		<tr>
			<th>Name</th>
			<th>Description</th>
			<th>Nomination Limit</th>
			<th>Action</th>
		</tr>
		<tr>
			<td>
				<input id='add_cat_name' name='add_cat_name' size='20' value='<?php echo $add_name; ?>' />
			</td><td>
				<input id='add_cat_descrip' name='add_cat_descrip' size='50' value='<?php echo $add_descrip; ?>' />
			</td><td>
				<input id='add_cat_count' name='add_cat_count' size='5' value='<?php echo $add_count; ?>' />
			</td><td align='center'>
				<input type='submit' name='submit' id='addcategory' class='button' value='Add' />
			</td>
		</tr>
		</table>
		</form>

		<br />

		<table border='1' cellspacing='0' align='center'>
		<tr bgcolor='#BBCCEE'>
			<td colspan='7' align='center'><p><b>Current Categories</b></p></td>
		</tr>
		<tr>
			<th>Name</th>
			<th>Description</th>
			<th>Nomination Limit</th>
			<th>Action</th>
		</tr>
		<?php
			$db->Query("SELECT * FROM category;");
			while($db->getRow()) {
				echo "<form name='updatecategoryform' id='updatecategoryform' action='".HTTP_SERVER.ADMIN_DIR."categories' method='post'>
							<tr valign='center'>
								<td>
									<input id='edit_cat_name".$db->access[0]."' name='edit_cat_name".$db->access[0]."' size='20' value='".$db->access[1]."' />
								</td><td>
									<input id='edit_cat_descrip".$db->access[0]."' name='edit_cat_descrip".$db->access[0]."' size='50' value='".$db->access[2]."' />
								</td><td>
									<input id='edit_cat_count".$db->access[0]."' name='edit_cat_count".$db->access[0]."' size='5' value='".$db->access[3]."' />
								</td><td align='center'>
									<input type='image' name='submit".$mem[0]."' id='update".$mem[0]."' src='".HTTP_SERVER.IMG_DIR."b_edit.png' alt='Update' value='Update' /> |
									<input type='image' name='submit".$mem[0]."' id='delete".$mem[0]."' src='".HTTP_SERVER.IMG_DIR."b_del.png' alt='Delete' value='Delete' onclick=\"return confirm('Are you sure you want to delete this member?');\" />
								</td>
							</tr></form>";
			}
		?>
		</table>
	<br />
